<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网-公司分页列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		/*background-image: url("images/bdybg.jpg");*/
		color: #333;
	}
	.companyList {
		width: 980px;
		text-align: left;
		padding: 10px;
		background-color: #FFFFFF;
		border-top-left-radius: 20px;
		border-top-right-radius: 20px;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
		font-size: 12px;
		/*background-image: url("../images/grey.gif");*/
	}
	.companyList ul {
		list-style: none;	
	}
	.companyList li {
		/*display: block;*/
		padding: 2px 0px;
		margin: 2px 0px; 
	}
	</style>
	<script type="text/javascript">
		//opener = undefined;
		//self = window;
	</script>
  </head>
  
  <body>
  <%@ include file="../header.jsp" %>
    <center>
    <div style="width:980px;text-align:left;margin:10px;">
    	<div style="float:left;">
		<img alt="骑驴网" src="images/qilv.png">
	</div>
	<div style="float:left;font-size:24px;font-weight:bold;padding:22px 0px 5px 15px;">
	</div>
	<div style="padding:10px 25px;margin:0px;">
		<form action="company.html" style="margin:0px;padding:5px;" method="get" onsubmit="findCompa(this.name.value, '_self');return false;">
			<input type="hidden" name="method" value="findCompany">
			<input type="text" class="findInput" style="background:url(images/dot6.gif) no-repeat;padding-left:28px;border:1px solid #C1C1C1;height:20px;" name="name" value="${name}">
			<input type="submit" style="margin:0px;" value="搜 索 公 司">
			&nbsp;&nbsp;&nbsp;&nbsp;没有我要找的公司，我要
			<a href="pages/company/addcompany.jsp" target="_blank">发布新公司</a>
			<br/>
		</form>
		<c:if test="${keywords != null}">
		<p style="margin-top:3px;text-decoration:none;">&nbsp;&nbsp;&nbsp;您可能感兴趣的关键字：
			<c:forEach items="${keywords}" var="keyword">
				<a style="text-decoration:none;"  onclick="findCompa('${keyword.value}','_self');" href="javascript:;" target="_self">${keyword.value}</a>
			</c:forEach>
		</p>
		</c:if>
	</div>
	<div style="border:0px;border-top:2px solid #4273B3;clear:both;"></div>
    <div class="companyList">
    	<ul style="margin:0px;padding:0px;">
			<li></li>
			<c:forEach items="${pv.records}" var="company" varStatus="vs">
			  <li style="margin-top:0px;padding-top:3px;height:auto;overflow:hidden;">
			  <a  target="_blank" style="margin-top:0px;padding-top:0px;font-size:13px;" class="compaHref" href="company.html?method=showCompany&id=${company.id}">${company.cname}</a>
			  （网友评分：${company.cscore}分）共有${company.commentCount}条评论
			  <p>${fn:substring(company.cdesc, 0, 120)}${fn:length(company.cdesc)>120?'...':''}</p>
			  </li>
			  <li style="margin:0px;padding:0px;"><hr style="border:0px;border-top:1px dotted #E9EFF6;height:1px;"/></li>
			</c:forEach>
		</ul>
    </div>
    <%@ include file="../share/pager.jsp" %>
    </center>
    <%@ include file="../tailer.jsp" %>
  </body>
<script type="text/javascript">
	function topage(pageNo) {
		var keyw = encodeURIComponent(encodeURIComponent('${name}'));
		location.href="company.html?method=findCompany&name="+keyw+"&pageNo=" + pageNo;
	}
</script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0" charset="utf-8"></script>
</html>
